<?php
@session_start();

define('SYSTEM_PATH', str_replace("\\", "/", dirname(dirname(__FILE__))));
require SYSTEM_PATH . '/vendor/autoload.php';
$config =require SYSTEM_PATH . '/app/config/settings.php';
$app = new Slim\App($config);

$container = $app->getContainer();
require SYSTEM_PATH . '/app/container.php';
require SYSTEM_PATH . '/app/route.php';
$app->run();
?>